<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
 <meta http-equiv="Content-Language" content="ko" />
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta http-equiv="Content-Style-Type" content="text/css" />
 <meta name="robots" content="noindex, nofollow" />   
 <title> #perl log repository </title>
 <link rel="stylesheet" href="/css/import.css" type="text/css" />
 <link rel="stylesheet" href="/css/jquery.jgrowl.css" type="text/css" />
 <script type="text/javascript" src="/js/jquery-1.2.6.js"></script>
 <script type="text/javascript" src="/js/jquery.jgrowl.js"></script>
 <script type="text/javascript">
<!--
var now = [% time | html %];
var request_time = 0;
jQuery.extend({
    cache_timers : [],
    setInterval  : function(func, ms) { jQuery.cache_timers.push(setInterval(func, ms)) },
    clearInterval: function() { jQuery.each(jQuery.cache_timers, function(i,o){ clearInterval(o) }) }
});

function load_data() {
  $.getJSON('/getmsg/', { time: now }, function(json) {
    $.each(json.data, function(i, message) {
      var message_time = message.when;
      var regTime = new RegExp("^(..)(..)(..)$");
      message_time = message_time.replace(regTime, "$1:$2:$3");
      message.what = message.what.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');

      setTimeout(function() { $.jGrowl('[ ' + message_time + ' ] ' + message.what); }, 500);
      $("#channel-log").append("<p>[" + message_time + "]" + message.what + "</p>");
      now = message.when;
    });
  });
  request_time++;
  if (request_time >= 50) {
    jQuery.clearInterval();
  }
}

$(window).load(function() {
  jQuery.setInterval(function() {
     load_data();
  }, 15000);
});
-->
 </script>
 <script>
<!--
function autolink(id) {
    var container = document.getElementById(id);
    var doc = container.innerHTML;
    var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-+/.a-zA-Z0-9_~#%$?&;=:200-377()]+)","gi");
    container.innerHTML = doc.replace(regURL,"<a href='$1://$2' target='_blank'>$1://$2</a>");
}
-->
 </script>
</head>
<body>
  <div id="header">
    <h1>#perl log repository</h1>
    <div class="navi">
      <ul id="dates">
        <li class="prev"><a href="[% c.config.url.base %]perl-kr/[% prev_date | html %]">&lt;&lt;&nbsp;[% prev_date | html %]</a></li>
        <li class="next"><a href="[% c.config.url.base %]perl-kr/[% next_date | html %]">[% next_date | html %]&nbsp;&gt;&gt;</a></li>
      </ul>
      <div id="times"></div>
    </div>
  </div>
  <p></p>
  <div id="content">
    <div id="main-pannel">
      <div id="right-pannel">
        <div id="channel-log">
[%- SET times = {} -%]
[% FOREACH line IN histories -%]
[%- time = line.match('\[(\d{2}).+\]') %]
[%- time = time.0 %]
[%- UNLESS times.${time} %][% times.${time} = 1 %]<p><span><a href="#" name="[% time %]">[[% time %]]</a></span></p>[% END -%]
<p>[% line | html %]</p>
[%- END %]
        </div>
        <script>
[% FOREACH time IN times %]
document.getElementById('times').innerHTML += '&nbsp;&nbsp;<a href="#[% time.key %]">[ [% time.key %] ]</a>';
[% END %]
        </script>
        <script>autolink('channel-log');</script>
      </div>
      <div id="left-pannel">
        <div class="links">
          <h3>Related (Site|Project)</h3>
          <ul>
            <li><a href="http://www.perlmania.or.kr"/>Perl Mania</a></li>
            <li><a href="http://doc.perl.kr">doc.perl.kr</a></li>
            <li><a href="http://code.google.com/p/perldoc-kr/">perldoc-kr</a></li>
            <li><a href="http://code.google.com/p/perl-irc-bot/">perl-irc-bot</a></li>
            <li><a href="[% c.config.url.base %]code/">CodePad Remote</a></li>
			<li><a href="http://forgeftp.novell.com//gtk2-perl-study/documentation/html/">Gtk2-Perl Tutorial</a></li>
          </ul>
        </div>
        <div class="links">
          <h3>Blogs</h3>
          <ul>
            <li><a href="http://perlog.org/">Perlog</a></li>
            <li><a href="http://aero.dnip.net/blog/">aero's Blog</a></li>
            <li><a href="http://perlog.pung96.net/">pung96's Blog</a></li>
            <li><a href="http://jeen.tistory.com/">JEEN's Blog</a></li>
			<li><a href="http://crew.emstone.com/~keedi/timetolog/">Keedi's Blog</a></li>
            <li><a href="http://whitecatz.com/">하얀_고양이's Blog</a></li>
            <li><a href="http://saillinux.egloos.com/">saillinux's Blog</a></li>
            <li><a href="http://twitter.com/perl_kr/">Twitter Perl Korea</a></li>
            <li><a href="http://me2day.net/perl/">Me2day Perl</a></li>
	    <!-- li><a href="#" onclick="load_data();">blah</a></li -->
          </ul>
        </div>
      </div>
    </div>
  </div>
<!-- google analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6525362-1");
pageTracker._trackPageview();
} catch(err) {}
</script> 
<!-- end of google analytics -->
</body>
</html>
